package com.example.hangzhou.welbeing.mytestdemoapp.animation.animationAdapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.example.hangzhou.welbeing.mytestdemoapp.factory.TraditionalAnimationFragmentFactory;

/**
 * 杭州惟君医疗科技有限公司09
 * Created by 20433 on 2018/5/8
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class TraditionalAnimationAdapter extends FragmentPagerAdapter {
    private String[] arr = new String[]{"alpha","translate","scale","rotate","set"};
    public TraditionalAnimationAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return TraditionalAnimationFragmentFactory.CreateCircleObject(position);
    }

    @Override
    public int getCount() {
        return arr.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return arr[position];
    }
}
